#include"stdio.h"

int main()
{
	double n, L;
	scanf_s("%lf %lf", &n, &L);
	double BMI = n / (L * L);
	printf("%.1f\n", BMI);
		if (BMI> 25)
		{ 
			printf("PANG");
		}
		else
		{
			printf("HAI XING");
		}
	return 0;
}